/* Layout */
import Layout from '../views/layout/Layout'

const _import = require('./_import_' + process.env.NODE_ENV)

const reportRoutes = [
  {
    path: '/report',
    component: Layout,
    redirect: 'noredirect',
    name: 'report',
    meta: {
      title: '报表管理',
      icon: 'excel',
      roles: []
    },
    children: [
      {
        path: 'report-company',
        name: 'report-company',
        component: _import('report/company/index'),
        meta: {
          title: '会员输赢报表',
          roles: ['virtual'/*虚拟数据查看*/]
        }
      },
      {
        path: 'report-agency',
        name: 'report-agency',
        component: _import('report/agency/index'),
        meta: {
          title: '代理输赢报表',
          roles: ['virtual'/*虚拟数据查看*/]
        }
      },
      {
        path: 'report-game',
        name: 'report-game',
        component: _import('report/game/index'),
        meta: {
          title: '游戏输赢报表',
          roles: ['virtual'/*虚拟数据查看*/],
          // noCache: true
        }
      },
      // {
      //   path: 'report-member',
      //   name: 'report-member',
      //   component: _import('report/player/index'),
      //   meta: {
      //     title: '玩家财务报表',
      //     roles: []
      //   }
      // },
      {
        path: 'report-transaction',
        name: 'report-transaction',
        component: _import('report/transaction/index'),
        meta: {
          title: '交易明细报表',
          roles: []
        }
      },
      {
        path: 'report-credit',
        name: 'report-credit',
        component: _import('report/credit/index'),
        meta: {
          title: '上分报表',
          roles: ['virtual'/*虚拟数据查看*/],
          noCache: true
        }
      },
    ]
  }
]

export default reportRoutes
